home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / cpp_libs / intrvews / xgrab.lha / xgrab / ui / Makefile < prev    next >
Encoding:
Makefile  |  1990-04-25  |  7.8 KB  |  321 lines

  1. # GRAB Graph Layout and Browser System
  2. #
  3. # Copyright (c) 1986, 1988 Regents of the University of California
  4. # Copyright (c) 1989, Tera Computer Company
  5.  
  6. #
  7. # Xgrab
  8. #
  9.  
  10. #I = /u1/greg/xgrab/iv
  11. I = ../../iv
  12. M = VAX
  13. X = X11
  14. D = $M.$X
  15. L = ../lib/$D
  16. L2 = ../lib/$M
  17.  
  18. #SRC = /u1/greg/xgrab/iv/src
  19. SRC = ../../iv/src
  20. AOUT = xgrab
  21. INCLUDE = ../include
  22. GRABDIR    = ../grabst
  23. #
  24. # alas, but 1.6 GC on the vax/ultrix caused a bus error when it
  25. # tried to allocate memory.  I didn't have the patience to figure out
  26. # why.  -rrh, 25Apr90
  27. #
  28. #GC = GC/gc.a
  29. GC = OGC/gc++.o
  30. RANLIBS = $(GRABDIR)/grablib.a $(GC)
  31.  
  32. #CC = /usr/local/CC
  33. #CC = CC
  34. CC = g++
  35. CC2 = cc
  36. OPTFLAGS =
  37. CFLAGS = $(OPTFLAGS) -I${INCLUDE} -I$(SRC) -I./CCinclude
  38. CFLAGS2 = -I$(INCLUDE) $(OPTFLAGS) -DGarbageCollect
  39. #CFLAGS = $(OPTFLAGS) -I${INCLUDE} -I$(SRC) -I./CCinclude
  40. #CFLAGS2 = -I$(INCLUDE) $(OPTFLAGS)
  41. #LD = "CC"
  42. LD=$(CC)
  43. LDFLAGS = 
  44. EXTLIBS = ${L2}/libInterViews${X}.a ${L2}/libgraphic.a -l$X -lm
  45. GRABCFILES = ${GRABDIR}/*.c
  46.  
  47. OBJS =  stringedit.o\
  48.     textviewer.o\
  49.     mymenu.o\
  50.     dialogbox.o\
  51.     ipaint.o\
  52.         fonthandler.o\
  53.     att.o\
  54.     dview.o\
  55.     graph.o\
  56.     tview.o\
  57.     myadjuster.o\
  58.     list.o\
  59.     bview.o\
  60.         aview.o\
  61.     textedit.o\
  62.     mypanner.o\
  63.     gview.o\
  64.     helper.o\
  65.     winview.o\
  66.     gframe.o\
  67.     gmain.o\
  68.     interf.o
  69.  
  70. CFILES = clip.c main.c output.c\
  71.      misc.c\
  72.      routines2.c\
  73.      rusage.c\
  74.      select.c\
  75.      routines.c getinp.c\
  76.      intersect.c\
  77.       del.c\
  78.      change.c\
  79.      insert.c\
  80.      insertarc.c\
  81.      move.c\
  82.      pparse.c\
  83.      pexec.c\
  84.      pred.c\
  85.      ps.c
  86.  
  87. OFILES = clip.o main.o output.o\
  88.      misc.o\
  89.      routines2.o\
  90.      rusage.o\
  91.      select.o\
  92.      routines.o getinp.o\
  93.      intersect.o\
  94.      del.o\
  95.      change.o\
  96.      insert.o\
  97.      insertarc.o\
  98.      move.o\
  99.      pparse.o\
  100.      pexec.o\
  101.      pred.o\
  102.      ps.o
  103.  
  104. ${AOUT}: ${OBJS} $(OFILES) $(RANLIBS)
  105.     @rm -f ${AOUT}
  106.     ${LD} ${LDFLAGS} ${OBJS} $(OFILES) ${EXTLIBS} $(RANLIBS) -o ${AOUT}
  107.  
  108. install: ${AOUT}
  109.     strip ${AOUT}; mv ${AOUT} ${DEST}
  110.  
  111. textviewer.o:     ${INCLUDE}/textviewer.h
  112.     ${CC} ${CFLAGS} -c textviewer.c
  113.  
  114. stringedit.o:     ${INCLUDE}/stringedit.h
  115.     ${CC} ${CFLAGS} -c stringedit.c
  116.  
  117. ipaint.o:     ${INCLUDE}/ipaint.h
  118.     ${CC} ${CFLAGS} -c ipaint.c
  119.  
  120. fonthandler.o:     ${INCLUDE}/fonthandler.h
  121.     ${CC} ${CFLAGS} -c fonthandler.c
  122.  
  123. att.o:         ${INCLUDE}/att.h
  124.     ${CC} ${CFLAGS} -c att.c
  125.  
  126. aview.o:     ${INCLUDE}/aview.h ${INCLUDE}/istring.h\
  127.          ${INCLUDE}/bview.h
  128.     ${CC} ${CFLAGS} -c aview.c
  129.  
  130. dview.o:     ${INCLUDE}/dview.h ${INCLUDE}/att.h\
  131.          ${INCLUDE}/istring.h
  132.     ${CC} ${CFLAGS} -c dview.c
  133.  
  134. graph.o:     ${INCLUDE}/graph.h ${INCLUDE}/fonthandler.h\
  135.         ${INCLUDE}/gview.h ${INCLUDE}/tedge.h\
  136.         ${INCLUDE}/routines.h ${INCLUDE}/istring.h\
  137.         ${INCLUDE}/att.h
  138.     ${CC} ${CFLAGS} -c graph.c
  139.  
  140. tview.o:     ${INCLUDE}/tview.h ${INCLUDE}/istring.h
  141.     ${CC} ${CFLAGS} -c tview.c
  142.  
  143. mymenu.o:     ${INCLUDE}/mymenu.h 
  144.     ${CC} ${CFLAGS} -c mymenu.c
  145.  
  146. myadjuster.o:     ${INCLUDE}/myadjuster.h 
  147.     ${CC} ${CFLAGS} -c myadjuster.c
  148.  
  149. list.o:     ${INCLUDE}/list2.h
  150.     ${CC} ${CFLAGS} -c list.c
  151.  
  152. dialogbox.o:     ${INCLUDE}/dialogbox.h ${INCLUDE}/istring.h\
  153.         ${INCLUDE}/stringedit.h
  154.     ${CC} ${CFLAGS} -c dialogbox.c
  155.  
  156. bview.o:     ${INCLUDE}/bview.h ${INCLUDE}/routines.h\
  157.         ${INCLUDE}/gframe.h ${INCLUDE}/curs.h\
  158.         ${INCLUDE}/mymenu.h ${INCLUDE}/istring.h
  159.     ${CC} ${CFLAGS} -c bview.c
  160.  
  161. textedit.o:     ${INCLUDE}/textedit.h ${INCLUDE}/liststring.h\
  162.         ${INCLUDE}/list2.h ${INCLUDE}/istring.h\
  163.         ${INCLUDE}/textviewer.h
  164.     ${CC} ${CFLAGS} -c textedit.c
  165.  
  166. mypanner.o:     ${INCLUDE}/mypanner.h ${INCLUDE}/myadjuster.h
  167.     ${CC} ${CFLAGS} -c mypanner.c
  168.  
  169. gview.o:     ${INCLUDE}/gview.h ${INCLUDE}/graph.h\
  170.         ${INCLUDE}/mypanner.h ${INCLUDE}/gframe.h\
  171.         ${INCLUDE}/curs.h ${INCLUDE}/routines.h
  172.     ${CC} ${CFLAGS} -c gview.c
  173.  
  174. helper.o:     ${INCLUDE}/helper.h ${INCLUDE}/textedit.h\
  175.         ${INCLUDE}/liststring.h ${INCLUDE}/list2.h\
  176.         ${INCLUDE}/istring.h 
  177.     ${CC} ${CFLAGS} -c helper.c
  178.  
  179. winview.o:     ${INCLUDE}/winview.h ${INCLUDE}/gview.h\
  180.         ${INCLUDE}/bview.h ${INCLUDE}/tview.h\
  181.         ${INCLUDE}/graph.h
  182.     ${CC} ${CFLAGS} -c winview.c
  183.  
  184. gframe.o:     ${INCLUDE}/gframe.h ${INCLUDE}/gview.h\
  185.         ${INCLUDE}/bview.h ${INCLUDE}/tview.h\
  186.         ${INCLUDE}/winview.h ${INCLUDE}/graph.h\
  187.           ${INCLUDE}/mypanner.h ${INCLUDE}/myadjuster.h\
  188.         ${INCLUDE}/fonthandler.h ${INCLUDE}/curs.h\
  189.         ${INCLUDE}/att.h ${INCLUDE}/dview.h\
  190.         ${INCLUDE}/stringedit.h
  191.     ${CC} ${CFLAGS} -c gframe.c
  192.  
  193. gmain.o:     ${INCLUDE}/gview.h ${INCLUDE}/gframe.h\
  194.         ${INCLUDE}/graph.h ${INCLUDE}/tview.h\
  195.         ${INCLUDE}/aview.h
  196.     ${CC} ${CFLAGS} -c gmain.c
  197.  
  198. interf.o:     ${INCLUDE}/gmain.h ${INCLUDE}/graph.h\
  199.         ${INCLUDE}/dialogbox.h ${INCLUDE}/gframe.h\
  200.           ${INCLUDE}/helper.h ${INCLUDE}/bview.h\
  201.         ${INCLUDE}/att.h ${INCLUDE}/aview.h
  202.     ${CC} ${CFLAGS} -c interf.c
  203.  
  204. lint:        
  205.     lint -nx -I$(INCLUDE) $(CFILES) $(GRABCFILES)
  206.  
  207. ctags:
  208.     ctags -w $(CFILES) $(INCLUDE)/*.h
  209.  
  210. clip.o:     ${INCLUDE}/digraph.h ${INCLUDE}/attribute.h\
  211.         ${INCLUDE}/screen.h ${INCLUDE}/clip.h
  212.     ${CC2} ${CFLAGS2} -c clip.c
  213.  
  214. output.o:    ${INCLUDE}/digraph.h ${INCLUDE}/screen.h\
  215.           ${INCLUDE}/scrdep.h ${INCLUDE}/globals.h\
  216.         ${INCLUDE}/attribute.h ${INCLUDE}/cursor.h\
  217.         ${INCLUDE}/interf.h ${INCLUDE}/tedge.h\
  218.         ${INCLUDE}/clip.h
  219.     ${CC2} ${CFLAGS2} -c output.c
  220.  
  221. main.o:     ${INCLUDE}/screen.h ${INCLUDE}/globals.h\
  222.         ${INCLUDE}/digraph.h ${INCLUDE}/interf.h\
  223.         ${INCLUDE}/cursor.h ${INCLUDE}/attribute.h\
  224.         ${INCLUDE}/checkpoint.h
  225.     ${CC2} ${CFLAGS2} -c main.c
  226.  
  227. select.o:     ${INCLUDE}/digraph.h
  228.     ${CC2} ${CFLAGS2} -c select.c
  229.  
  230. del.o:         ${INCLUDE}/digraph.h ${INCLUDE}/screen.h\
  231.         ${INCLUDE}/scrdep.h ${INCLUDE}/globals.h\
  232.         ${INCLUDE}/interf.h ${INCLUDE}/tedge.h\
  233.         ${INCLUDE}/attribute.h
  234.     ${CC2} ${CFLAGS2} -c del.c
  235.  
  236. getinp.o:     ${INCLUDE}/digraph.h ${INCLUDE}/cursor.h\
  237.         ${INCLUDE}/screen.h ${INCLUDE}/globals.h\
  238.         ${INCLUDE}/attribute.h
  239.     ${CC2} ${CFLAGS2} -c getinp.c
  240.  
  241. insert.o:     ${INCLUDE}/digraph.h ${INCLUDE}/screen.h\
  242.         ${INCLUDE}/globals.h ${INCLUDE}/scrdep.h\
  243.         ${INCLUDE}/interf.h ${INCLUDE}/attribute.h
  244.     ${CC2} ${CFLAGS2} -c insert.c
  245.  
  246. insertarc.o:     ${INCLUDE}/digraph.h ${INCLUDE}/screen.h\
  247.         ${INCLUDE}/globals.h ${INCLUDE}/scrdep.h\
  248.         ${INCLUDE}/interf.h ${INCLUDE}/tedge.h\
  249.         ${INCLUDE}/attribute.h ${INCLUDE}/clip.h
  250.     ${CC2} ${CFLAGS2} -c insertarc.c
  251.  
  252. move.o:     ${INCLUDE}/digraph.h ${INCLUDE}/screen.h\
  253.         ${INCLUDE}/scrdep.h ${INCLUDE}/globals.h\
  254.         ${INCLUDE}/interf.h ${INCLUDE}/attribute.h
  255.     ${CC2} ${CFLAGS2} -c move.c
  256.  
  257. intersect.o:     ${INCLUDE}/digraph.h ${INCLUDE}/attribute.h
  258.     ${CC2} ${CFLAGS2} -c intersect.c
  259.  
  260. change.o:     ${INCLUDE}/screen.h ${INCLUDE}/globals.h\
  261.         ${INCLUDE}/digraph.h  ${INCLUDE}/set.h\
  262.         ${INCLUDE}/interf.h ${INCLUDE}/attribute.h\
  263.         ${INCLUDE}/tedge.h
  264.     ${CC2} ${CFLAGS2} -c change.c
  265.  
  266. misc.o:        ${INCLUDE}/digraph.h ${INCLUDE}/screen.h\
  267.         ${INCLUDE}/globals.h ${INCLUDE}/scrdep.h\
  268.         ${INCLUDE}/interf.h ${INCLUDE}/cursor.h\
  269.         ${INCLUDE}/attribute.h
  270.     ${CC2} ${CFLAGS2} -c misc.c
  271.  
  272. routines2.o:     ${INCLUDE}/digraph.h ${INCLUDE}/screen.h\
  273.         ${INCLUDE}/globals.h ${INCLUDE}/scrdep.h\
  274.              ${INCLUDE}/interf.h ${INCLUDE}/attribute.h\
  275.         ${INCLUDE}/checkpoint.h
  276.     ${CC2} ${CFLAGS2} -c routines2.c
  277.  
  278. rusage.o:
  279.     ${CC2} ${CFLAGS2} -c rusage.c
  280.  
  281. routines.o:     ${INCLUDE}/digraph.h ${INCLUDE}/screen.h\
  282.             ${INCLUDE}/globals.h ${INCLUDE}/scrdep.h\
  283.         ${INCLUDE}/interf.h ${INCLUDE}/cursor.h\
  284.         ${INCLUDE}/attribute.h
  285.     ${CC2} ${CFLAGS2} -c routines.c
  286.  
  287. pparse.o:    ${INCLUDE}/digraph.h ${INCLUDE}/attribute.h\
  288.         ${INCLUDE}/token.h ${INCLUDE}/pparse.h
  289.     ${CC2} ${CFLAGS2} -c pparse.c
  290.  
  291. pexec.o:    ${INCLUDE}/digraph.h ${INCLUDE}/attribute.h\
  292.         ${INCLUDE}/token.h ${INCLUDE}/pparse.h\
  293.         ${INCLUDE}/pexec.h
  294.     ${CC2} ${CFLAGS2} -c pexec.c
  295.  
  296. pred.o:        ${INCLUDE}/digraph.h ${INCLUDE}/attribute.h\
  297.         ${INCLUDE}/token.h ${INCLUDE}/pparse.h\
  298.         ${INCLUDE}/interf.h
  299.     ${CC2} ${CFLAGS2} -c pred.c
  300.  
  301. ps.o:        ${INCLUDE}/digraph.h ${INCLUDE}/screen.h\
  302.         ${INCLUDE}/globals.h ${INCLUDE}/scrdep.h\
  303.         ${INCLUDE}/ps.h ${INCLUDE}/attribute.h\
  304.         ${INCLUDE}/routines.h
  305.     ${CC2} ${CFLAGS2} -c ps.c
  306. gcmem.o:
  307.     ${CC} ${CFLAGS} -c gcmem.c
  308.  
  309. clean:
  310.     -rm -f ${OBJS}
  311.     -rm -f a.out core make.out xgrab
  312.     -rm $(OFILES)
  313.  
  314. depend:
  315.     mkdepend ${CFLAGS} -I/usr/include/CC ${OBJS}
  316.  
  317. # DO NOT DELETE THIS LINE -- make depend uses it
  318. # DEPENDENCIES MUST END AT END OF FILE
  319. # IF YOU PUT STUFF HERE IT WILL GO AWAY
  320. # see make depend above
  321.